<div class="row" style="margin-bottom: 20px; margin-top: -15px;">
    <div class="col-sm-12">
        <h3>
        	<i class="fa fa-edit" style="color:<?php echo $color?>"></i> <?php echo $title?>
        </h3>
    </div>
</div>
<div class="row">
	<div class="col-sm-12">
		<form action="<?php echo base_url('admin/episode/multi_ep').'/'.$film_id;?>" id="frm_multi_episode_New" class="form-horizontal" enctype="multipart/form-data" method="post">
			<?php $stt = 0;?>
            <?php if($number_multi != NULL){ for($i = 1 ; $i <= $number_multi ; $i++):?>
            <?php  
                $data    = explode('|',$arr_multi[$stt++]);
                $name_ep = $data[0];
                $url     = $data[1];
            ?>
                <div class="form-group  <?php if(form_error('epname') != NULL){echo 'has-error';}?>">
                    <label for="subject" class="col-sm-2 control-label">
                        Tên tập phim
                    </label>
                    <div class="col-sm-10" style="padding-left:0px;">
                        <input type="text" class="form-control"  name="epname[]" value="<?php echo  $name_ep;?>">
                        <?php echo form_error('epname','<p class="help-block">','</p>');?>
                    </div>
                </div>

                <div class="form-group <?php if(form_error('url') != NULL){echo 'has-error';}?>">
                    <label for="subject" class="col-sm-2 control-label">
                        Liên kết
                    </label>
                    <div class="col-sm-10" style="padding-left:0px;">
                        <input type="text" class="form-control" name="url[]" value="<?php echo  $url;?>">
                        <?php echo form_error('url','<p class="help-block">','</p>');?>
                    </div>
                </div>
            <hr>
            <?php endfor; } ?>
            <input type="hidden" name="server" value="<?php echo $server;?>">
            <input type="hidden" name="name" value="<?php echo $name;?>">
		</form>
	</div>
</div>
<script>
	jQuery(document).ready(function($) {
		$('.btn-index').css({display:'none'});
        $('.btn-edit').css({display:'none'});
        $('.btn-copy').css({display:'none'});
        $('.btn-add').css({display:'inline-block'});
        $('.content input[type="checkbox"]').iCheck({checkboxClass: 'icheckbox_minimal'});
        $('.content input[type="radio"]').iCheck({radioClass: 'iradio_minimal'});
	});

	function New(){
        $(".content").mask("<?php echo 'Loading...'; ?>");
		$("#frm_multi_episode_New").submit();
	}

    function back_to_list(){
    	$(".content").mask("<?php echo 'Loading...'; ?>");
    	var url = '<?php echo base_url("admin/film");?>';
        window.location.href = url;
    }
</script>